package com.wealth.wechat.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;


@Entity
@Table(name="wechat_config")
public class WechatConfig implements Serializable {
	
	private static final long serialVersionUID = 5438523390140858045L;
	private Long id;
	private Long corpid;
	private String wxappid;
	private String wxappsecret;
	private String wxaccesstoken;
	private String wxjsapiticket;
	private Long wxtokenstamp;
	private Long wxticketstamp;
	
/* ---------------- method ----------------*/
	
	public WechatConfig() {}
	
	/* ---------------- getter/setter ----------------*/
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getCorpid() {
		return corpid;
	}

	public void setCorpid(Long corpid) {
		this.corpid = corpid;
	}

	@Column(name="WXAPPID")
	public String getWxappid() {
		return wxappid;
	}

	public void setWxappid(String wxappid) {
		this.wxappid = wxappid;
	}

	@Column(name="WXAPPSECRET")
	public String getWxappsecret() {
		return wxappsecret;
	}

	public void setWxappsecret(String wxappsecret) {
		this.wxappsecret = wxappsecret;
	}
	
	@Column(name="WXACCESSTOKEN")
	public String getWxaccesstoken() {
		return wxaccesstoken;
	}

	public void setWxaccesstoken(String wxaccesstoken) {
		this.wxaccesstoken = wxaccesstoken;
	}
	
	@Column(name="WXJSAPITICKET")
	public String getWxjsapiticket() {
		return wxjsapiticket;
	}

	public void setWxjsapiticket(String wxjsapiticket) {
		this.wxjsapiticket = wxjsapiticket;
	}

	@Column(name="WXTOKENSTAMP")
	public Long getWxtokenstamp() {
		return wxtokenstamp;
	}

	public void setWxtokenstamp(Long wxtokenstamp) {
		this.wxtokenstamp = wxtokenstamp;
	}

	@Column(name="WXTICKETSTAMP")
	public Long getWxticketstamp() {
		return wxticketstamp;
	}

	public void setWxticketstamp(Long wxticketstamp) {
		this.wxticketstamp = wxticketstamp;
	}
}
